home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Database How-To
/
Visual Basic 4 Database - How-to (The Waite Group)(1995).iso
/
errors.fr_
/
errors.fr
Wrap
Text File
|
1995-07-19
|
2KB
|
82 lines
VERSION 4.00
Begin VB.Form frmODBCErrors
Caption = "ODBC Error"
ClientHeight = 3090
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 6120
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 3585
Left = 990
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3090
ScaleWidth = 6120
Top = 1095
Width = 6330
Begin VB.CommandButton cmdQuit
Caption = "OK"
Height = 375
Left = 4920
TabIndex = 1
Top = 2640
Width = 1095
End
Begin MSOutl.Outline outErrors
Height = 2415
Left = 120
TabIndex = 0
Top = 120
Width = 5895
_Version = 65536
_ExtentX = 10398
_ExtentY = 4260
_StockProps = 77
Style = 0
End
End
Attribute VB_Name = "frmODBCErrors"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
'For this form to work properly, the Microsoft
'Outline control must be installed in the Toolbox.
Private Sub cmdQuit_Click()
Unload Me
End Sub
Private Sub Form_Resize()
If Me.WindowState = NORMAL Then
If Me.ScaleHeight < (4 * cmdQuit.Height) Then
Me.Height = (6 * cmdQuit.Height)
End If
If Me.ScaleWidth < (4 * cmdQuit.Width) Then
Me.Width = (4 * cmdQuit.Width)
End If
'Center the form
Me.TOP = (Screen.Height - Me.Height) / 2
Me.Left = (Screen.Width - Me.Width) / 2
'Redraw the controls
cmdQuit.TOP = Me.ScaleHeight - (1.25 * cmdQuit.Height)
cmdQuit.Left = Me.ScaleWidth - (cmdQuit.Width + 0.25 * cmdQuit.Height)
outErrors.TOP = 0.25 * cmdQuit.Height
outErrors.Left = 0.25 * cmdQuit.Height
outErrors.Width = Me.ScaleWidth - 0.5 * cmdQuit.Height
outErrors.Height = cmdQuit.TOP - 0.5 * cmdQuit.Height
End If
End Sub